<?php

namespace Database\Seeders;

use App\Models\Category;
use Illuminate\Database\Seeder;

class CategorySeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $ins = [
            [
                'name' => '工资',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '理财',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '兼职',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '人情',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '奖金',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '报销',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '生活费',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '零花钱',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
            [
                'name' => '其他',
                'type' => Category::TYPE_IN,
                'icon' => 'red-packet'
            ],
        ];
        $outs = [
            [
                'name' => '交通',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '住房',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '餐饮',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '日用',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '人情',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '购物',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '医疗',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '教育',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
            [
                'name' => '其他',
                'type' => Category::TYPE_OUT,
                'icon' => 'red-packet'
            ],
        ];

        foreach ($ins as $in) {
            Category::query()->create($in);
        }
        foreach ($outs as $out) {
            Category::query()->create($out);
        }
    }
}
